package com.ycz.master.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import org.springframework.data.annotation.Id;

import java.util.Date;

public class Emp {
//    type = IdType.AUTO
    @TableId(value = "emp_id")
    private int empId;

    private String account;

    private String ename;

    private String password;

    private String tel;

    private String province;

    private String city;

    private String district;

    private String address;

    private Date hiredate;

    private Integer sal;

    private Integer job;

    private Integer deptId;

    public int getEmpId() {
        return empId;
    }

    public void setEmpId(int empId) {
        this.empId = empId;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getHiredate() {
        return hiredate;
    }

    public void setHiredate(Date hiredate) {
        this.hiredate = hiredate;
    }

    public Integer getSal() {
        return sal;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "empId=" + empId +
                ", account='" + account + '\'' +
                ", ename='" + ename + '\'' +
                ", password='" + password + '\'' +
                ", tel='" + tel + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", district='" + district + '\'' +
                ", address='" + address + '\'' +
                ", hiredate=" + hiredate +
                ", sal=" + sal +
                ", job=" + job +
                ", deptId=" + deptId +
                '}';
    }

    public void setSal(Integer sal) {
        this.sal = sal;
    }

    public Integer getJob() {
        return job;
    }

    public void setJob(Integer job) {
        this.job = job;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }
}